Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example serving aasa static file #177

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mbakalov
Copy link
Member

@mbakalov mbakalov commented Jun 9, 2023

This shows change to make to the sample to be able to serve and additional file:

  • Add the file to /client/public folder
  • In the server config add the handler to serve the file

To deploy changes:

  • In "client" folder run npm run package
  • This will create /dist folder containing compiled app, which should contain
    • server.js
    • web.config
    • "public" folder
  • zip entire contents of this "dist" folder
  • Deploy that zip to your app service using Kudu

Comment on lines +47 to +49
app.get('/.well-known/apple-app-site-association', (_, res) => {
res.sendFile(path.join(__dirname, 'public/apple-app-site-association.json'));
});

Check failure

Code scanning / CodeQL

Missing rate limiting

This route handler performs [a file system access](1), but is not rate-limited.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant